<?php
// test/unit/model/JobeetJobTest.php
include(dirname(__FILE__).'/../../bootstrap/Doctrine.php');
 
$t = new lime_test(1);
$t->comment('get active jobs count');
$cat = Doctrine::getTable('JobeetCategory')->createQuery()->fetchOne();
$t->is($cat->countActiveJobs(), 1 ,'->countActiveJobs() count number of active jobs for a category');
?>